<script setup>
import {myPinia} from "@/stores/myPinia.js";
function  Start(count){
    console.log(myPinia().num)
    myPinia().add(count);
}
</script>

<template>
<button @click="Start(10)">代码，启动！</button>
  {{myPinia().num}}
</template>

<style scoped>

</style>